package com.lizhi.yun;/**
 * @program: upp
 * @name ControllerApplication
 * @description:
 * @author: lizhi
 * @create: 2020-06-01 17:28
 */

import com.lizhi.common.yun.common.Constants;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 *@program: upp
 *@name ControllerApplication
 *@description:
 *@author: lizhi
 *@create: 2020-06-01 17:28
 */
@EnableSwagger2
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages="com.lizhi")
public class ServiceStandApplication {
    public static void main(String[] args) {

        /**  配置加解密跟秘钥，与配置文件的密文分开放  */
        System.setProperty("jasypt.encryptor.algorithm", Constants.Jasypt.JASYPT_ALGORITHM);
        System.setProperty("jasypt.encryptor.password", Constants.Jasypt.JASYPT_PASSWORD);

        SpringApplication.run(ServiceStandApplication.class, args);
    }
}
